home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19970929-19971216
/
000187_news@newsmaster….columbia.edu _Tue Oct 28 08:33:35 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-12-15
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id IAA11180
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 28 Oct 1997 08:33:34 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id IAA00287
for kermit.misc@watsun; Tue, 28 Oct 1997 08:33:33 -0500 (EST)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Using variable in SET commands...
Date: 28 Oct 1997 13:33:28 GMT
Organization: Columbia University
Lines: 27
Message-ID: <634pj8$b17$1@apakabar.cc.columbia.edu>
References: <34554BFB.C864758D@earthlink.net>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:7968
In article <34554BFB.C864758D@earthlink.net>,
Bill <pearson@earthlink.net> wrote:
: I'm trying to use the "Built-in Variables" for some of my scripting. I
: would like to be able to set them, specifically \v(user), \v(password),
: and \v(printer). At the command prompt I can set them using the SET
: commands, e.g. SET LOGIN USER <username>. However, when I attempt this
: using a variable (\%a) or a macro (\m(username)), only the literal value
: gets placed in the "Built-in Variables".
:
: Is there a way to de-reference the variables/macros within the SET
: commands? Or, access the "Built-in Variables" directly within a script,
: i.e. define \v(user) {\m(username)}?
:
: BTW: I'm using K95 on an Intel NT4.0 (build 1381 service pack 3) to access
: an OPENVMS/Alpha across an ethernet LAN.
:
The \v(user) variable is special, and the \v(password) even more so;
these are not intended for general-purpose use. There is, at present, no
\v(printer) variable. In any case, you can't put a \v(xxx) variable on the
"left hand side" of a definition or assignment; that's what regular
user-defined variables are for:
define \%a somevalue
assign user \%a
echo \m(user)
- Frank